package com.windrift.springhibernate.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Comparator;

/**
 * Created by IntelliJ IDEA.
 * User: cy
 * Date: 28/04/12
 * Time: 9:10 AM
 * To change this template use File | Settings | File Templates.
 */
@Controller
public class HomeController {

    @RequestMapping(value="/")
    public String home () {
        return "index";
    }

    @RequestMapping(value="/manage", method = RequestMethod.GET)
     public String manage() {
        return "manage/index";
    }

    @RequestMapping(value="/accounting", method = RequestMethod.GET)
    public String showAccounting() {
        return "accounting/index";
    }
}
